

function getDate(){
    const now = new Date();  
    let year = now.getFullYear();  
    let month = now.getMonth() + 1; // 月份是从0开始计数的，所以需要加1  
    let day = now.getDate();  
    month = month<10?"0"+month:month;
    day = day<10?"0"+day:day;

      
    return `${year}-${month}-${day}`;
}

module.exports = getDate